/*
    Project Milestone 3
    by Lorenzo Miori [Lorenzo.Miori@stud-inf.unibz.it,
    Matteo Angriman [Matteo.Angriman@stud-inf.unibz.it],
    Nick Preda [Nicolae.Preda@stud-inf.unibz.it]
*/

package DB;

import static DB.GenericDBInterface.*;
import java.sql.Connection;
/**
 *
 * @author matteo
 */
public class ExtraServiceDB extends GenericTableInterface {
    /*Declaration of the attributes*/
    public static final String EXTRASERVICE_TABLE_NAME = "extraservice";
    public static final String EXTRASERVICE_ID = "extraserv_id";
    public static final String EXTRASERVICE_COST = "extraserv_cost";
    public static final String EXTRASERVICE_DESCRIPTION = "extraserv_description";
    public static final String EXTRASERVICE_AVAILABILITY = "extraserv_availability";
    public static final String EXTRASERVICE_ORDER[] = {EXTRASERVICE_ID, EXTRASERVICE_COST, EXTRASERVICE_DESCRIPTION, EXTRASERVICE_AVAILABILITY};
    
    /*Attribute types*/
    public static final int[] EXTRASERVICE_TYPES = {INT, REAL, STRING, BOOLEAN};
    
    public ExtraServiceDB (Connection dbConnection){
        super(dbConnection, EXTRASERVICE_TYPES, EXTRASERVICE_ID, EXTRASERVICE_TABLE_NAME, EXTRASERVICE_ORDER);
    }
}
